package com.demo.mystudy.ui.main

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.demo.mystudy.R

/**
 * Created by zhangyuncai on 2025/4/25.
 * 描述：
 */
class MainAdapter(list: MutableList<MainButtonBean>) :
    BaseQuickAdapter<MainButtonBean, BaseViewHolder>(R.layout.item_main_button, list) {
    override fun convert(helper: BaseViewHolder, item: MainButtonBean) {
        helper.setText(R.id.bt_main_button_name,item.name)
        helper.addOnClickListener(R.id.bt_main_button_name)
    }

}